-- GENERATED SPELL FOR [Assault Bot] --


function spell0_34057(pUnit, Event) --@Emergency Mode,Self--
pUnit:FullCastSpellOnTarget(64582,pUnit)
pUnit:RegisterEvent('Sorts_34057', 577, 1)
end

function spell1_34057(pUnit, Event) --@Magnetic Field,n/a--
pUnit:FullCastSpellOnTarget(64668,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34057', 6348, 1)
end

function Sorts_34057(pUnit, Event)
local choix_sorts_34057 = math.random(0, 1)
if choix_sorts_34057 == 0 then
pUnit:RegisterEvent('spell0_34057', 1, 1)
end
if choix_sorts_34057 == 1 then
pUnit:RegisterEvent('spell1_34057', 1, 1)
end
end

function mob34057_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34057', math.random(1500, 3000), 1)
end

function mob34057_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34057_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34057_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34057, 1, 'mob34057_Action')
RegisterUnitEvent(34057, 2, 'mob34057_Leave')
RegisterUnitEvent(34057, 3, 'mob34057_Kill')
RegisterUnitEvent(34057, 4, 'mob34057_Die')
